package com.chenyun.store.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import lombok.Data;

import java.util.Date;

/**
 * @author Lonni
 * @date 2022-09-24 11:29
 */
@Data
@TableName("oss_attachment")
@Builder
public class Attachment {

    @TableId(type = IdType.NONE)
    private String id;
    /**
     * 业务类型
     */
    private String busType;
    private String fileType;
    private String fileName;
    private String url;
    private String signUrl;
    private String etag;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date uploadTime;
    private String exchangeId;
    /**
     * 存储类型 本地存储还是云存储
     */
    private String storeName;
    /**
     * 存储同名称
     */
    private String buckName;
    /**
     * MD5标识
     */
    private String identifier;

    /**
     * 文件总大小
     */
    private Double totalSize;



}
